package com.newbingo.dao.imple;

import java.util.List;

import com.newbingo.entity.PeriodGame;
import com.newbingo.util.Pager;

public interface IPeriodGameDao {
  
	//property contents
	public static final String PERIODNUM="periodNum";
	public static final String   GTNO="gtno";
	public static final String PERIODTIME="periodTime";
	
	public abstract void save(PeriodGame transientInstance);
	
	public abstract void delete(PeriodGame persistentInstance);
	
	public abstract PeriodGame findById(java.lang.Integer id);

	public abstract List findByExample(PeriodGame instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByPeriodNum(Object periodNum);
	
	public abstract List findByPeriodTime(Object periodTime);

	public abstract List findAll();

	public abstract PeriodGame merge(PeriodGame detachedInstance);

	public abstract void attachDirty(PeriodGame instance);
	
	/**
	 * 分页查询
	 * 
	 * */
	public abstract Pager findByPage(int start,int limit,Object type);
	
	public abstract Pager findByGtNO(int start ,int limit,int gtno);
	
	public abstract PeriodGame getCurrentPeriodGame(int gtno);
	
	/**
	 * 查询游戏历史开奖记录
	 * @param gtno 游戏桌编号
	 * @param date 时间
	 * @return Pager
	 * */
    public abstract Pager findHistoryRecord(int start,int limit,int gtno,String date);
	
}
